package com.dt76.smallloanfrontendservice.service.linte.impl;

import com.dt76.smallloanfrontendservice.mapper.linte.RepaymentMapper;
import com.dt76.smallloanfrontendservice.pojo.linte.RepaymentInfo;
import com.dt76.smallloanfrontendservice.service.linte.RepaymentService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("repaymentService")
public class RepaymentServiceImpl implements RepaymentService {

    private final RepaymentMapper repaymentMapper;

    public RepaymentServiceImpl(RepaymentMapper repaymentMapper) {
        this.repaymentMapper = repaymentMapper;
    }

    @Override
    public List<RepaymentInfo> qryAll(Integer userId) {
        return repaymentMapper.qryAll(userId);
    }

    @Override
    public Integer doneRep(Integer repId) {
        return repaymentMapper.doneRep(repId);
    }
}
